<table class="layui-table" style="width:2500px;" id="contentTab">
 	<input type="hidden" id="billId" th:value="${saleQuotationItem.id}"/>
 	<input type="hidden" id="billNo" th:value="${saleQuotationItem.billNo}"/>
 	<input type="hidden" id="companyId" th:value="${saleQuotationItem.companyId}"/>
 	<input type="hidden" id="customerId" th:value="${saleQuotationItem.customerId}"/>
  <thead>
    <tr>
    	 <th><input type="checkBox" lay-skin="primary" name="headCheckBox" lay-filter="headCheckBox"/></th>
      	 <th data-field="billNo">单据单号</th>
		 <th data-field="materialCoding">物料编码</th>
		 <th data-field="materialName">物料名称</th>
		 <th data-field="materialSpec">物料规格</th>
		 <th data-field="materialTypeName">物料类型</th>
		 <th data-field="brandName">品牌</th>
		 <th data-field="measurementUName">计量单位</th>
		 <th data-field="cMaterialCoding">客户物料编码</th>
		 <th data-field="cMaterialName">客户物料名称</th>
		 <th data-field="cMaterialSpec">客户物料规格</th>
		 <th data-field="statementName">结算方式</th>
		 <th data-field="statementDays">结算天数</th>
		 <th data-field="statementCurrencyName">结算币种</th>
		 <th data-field="statementExchangeRate">汇率</th>
		 <th data-field="statementTaxRate">税率</th>
		 <th data-field="amount">预计销售量</th>
		 <th data-field="price">单价</th>
		 <th data-field="origTaxPrice">含税单价</th>
    </tr>
     </thead>
    <tbody>
   
    <tr th:each="item : ${details}" class="edittr" >
    	<td style="width:40px;"><input type="checkBox" lay-skin="primary" name="trCheckBox"/></td>
		<td style="width:150px;"><input type="hidden" name="id" th:value="${item.id}"/><span th:text="${saleQuotationItem.billNo}"></span></td>
		<td style="width:150px;padding-left:0px;padding-right:0px;">
			<input type="text" name="materialCoding" class="layui-input" style="width:150px;" th:value="${item.materialCoding}"/>
			<input type="hidden" name="materialId" class="layui-input" style="width:150px;" th:value="${item.materialId}"/>
		</td>
		<td name='name' style="background-color:#f3f2f2;width:200px;" th:text="${item.materialName}"></td>
		<td name='spec' style="background-color:#f3f2f2" th:text="${item.materialSpec}"></td>
		<td name="type" style="background-color:#f3f2f2" th:text="${item.materialTypeName}"></td>
		<td name="brandName" style="background-color:#f3f2f2" th:text="${item.brandName}"></td>
		<td name="measureUnit" style="background-color:#f3f2f2" th:text="${item.measurementUName}"></td>
		<td name="sup_code" style="background-color:#f3f2f2" th:text="${item.cMaterialCoding}"></td>
		<td name="sup_name" style="background-color:#f3f2f2" th:text="${item.cMaterialName}"></td>
		<td name="sup_spec" style="background-color:#f3f2f2" th:text="${item.cMaterialSpec}"></td>
		<td style="background-color:#f3f2f2;padding-left:0px;padding-right:0px;width:120px;text-align:center;">
			<span th:text="${saleQuotationItem.statementName}"></span>

		</td>
		<td style="background-color:#f3f2f2" name="statementDays"><span th:text="${saleQuotationItem.statementDays}"></span></td>
		<td style="background-color:#f3f2f2" name="statementCurrencyName"><span th:text="${saleQuotationItem.statementCurrencyName}"></span></td>
		<td style="background-color:#f3f2f2" name="statementExchangeRate"><span th:text="${saleQuotationItem.statementExchangeRate}"></span></td>
		<td style="background-color:#f3f2f2" name="statementTaxRate"><span th:text="${saleQuotationItem.statementTaxRate}"></span>%</td> 
		<td style="padding-left:0px;padding-right:0px;width:120px;"><input style="width:120px;" type="text" name="amount" required  lay-verify="required|amountber" placeholder="预计销售量" autocomplete="off" class="layui-input" th:value="${item.amount}"/></td>
		<td style="padding-left:0px;padding-right:0px;width:80px;"><input style="width:80px;" type="text" name="price" required  lay-verify="required|amountber" placeholder="单价" autocomplete="off" class="layui-input" th:value="${item.price}"/></td>
		<td name="origTaxPrice" style="background-color:#f3f2f2"><span th:text="${item.origTaxPrice}"></span></td>
	</tr>
	</tbody>
</table>
<table style="display:none;" id="blankTpl">
<tbody>
<tr class="edittr">
		<td style="width:40px;"><input type="checkBox" lay-skin="primary" name="trCheckBox" lay-filter="trCheckBox"/></td>
		<td style="width:150px"><input type="hidden" name="id" value=""/><span th:text="${saleQuotationItem.billNo}"></span></td>
		<td style="width:150px;padding-left:0px;padding-right:0px;">
			<input type="text" name="materialCoding" class="layui-input" style="width:150px;" value=""/>
			<input type="hidden" name="materialId" class="layui-input" style="width:150px;" value=""/>
		</td>
		<td name='name' style="background-color:#f3f2f2;width:200px;"><span></span></td>
		<td name='spec' style="background-color:#f3f2f2"></td>
		<td name="type" style="background-color:#f3f2f2"></td>
		<td name="brandName" style="background-color:#f3f2f2"></td>
		<td name="measureUnit" style="background-color:#f3f2f2"></td>
		<td name="sup_code" style="background-color:#f3f2f2"></td>
		<td name="sup_name" style="background-color:#f3f2f2"></td>
		<td name="sup_spec" style="background-color:#f3f2f2"></td>
		<td style="background-color:#f3f2f2;padding-left:0px;padding-right:0px;width:120px;text-align:center;">
			<span th:text="${saleQuotationItem.statementName}"></span>
		</td>
		<td style="background-color:#f3f2f2" name="statementDays"><span th:text="${saleQuotationItem.statementDays}"></span></td>
		<td style="background-color:#f3f2f2" name="statementCurrencyName"><span th:text="${saleQuotationItem.statementCurrencyName}"></span></td>
		<td style="background-color:#f3f2f2" name="statementExchangeRate"><span th:text="${saleQuotationItem.statementExchangeRate}"></span></td>
		<td style="background-color:#f3f2f2" name="statementTaxRate"><span th:text="${saleQuotationItem.statementTaxRate}"></span>%</td>
		<td style="padding-left:0px;padding-right:0px;width:120px;"><input style="width:120px;" type="text" name="amount" required  lay-verify="required|amountber" placeholder="预计销售量" autocomplete="off" class="layui-input"></td>
		<td style="padding-left:0px;padding-right:0px;width:80px;"><input style="width:120px;" type="text" name="price" required  lay-verify="required|amountber" placeholder="单价" autocomplete="off" class="layui-input"></td>
		<td name="origTaxPrice" style="background-color:#f3f2f2"><span></span></td>
	</tr>
	</tbody>
</table>